package com.huatai.exchange.integration.vba.impl;

import com.faneui.common.exception.BusinessException;
import com.faneui.integration.http.HttpClientUtils;
import com.huatai.exchange.integration.vba.AbstractVbaService;
import com.huatai.exchange.integration.vba.service.FundInfoVoService;
import com.huatai.vba.facade.bean.FundInfoVo;
import com.huatai.vba.facade.bean.QueryFundInfoVoResp;
import org.springframework.stereotype.Service;

@Service("fundInfoVoService")
public class FundInfoVoServiceImpl extends AbstractVbaService implements FundInfoVoService {

    @Override
    public FundInfoVo queryFundInfoVo(Integer lZtbh) throws BusinessException {
        String url = baseUrl + "/fund/"+lZtbh ;
        return HttpClientUtils.get(url, QueryFundInfoVoResp.class).getFundInfoVo();
    }
}
